#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon May 11 16:20:44 2020

@author: yu
"""


import pandas as pd

import matplotlib.pyplot as plt


#names=["PyPy3"],names=["Python"]
t6random=pd.read_csv("astarT6random.csv")
#t6random=t6random.rename(index = {"6 cars": "PyPy3"},inplace = True) 
t6randompython=pd.read_csv("astarT6python.csv")
#t6randompython=t6randompython.rename(index = {"6 cars": "Python"}, inplace = True)

#df3=pd.DataFrame(df2,)
frames = [t6randompython,t6random]
result = pd.concat(frames,axis=1, sort=False)
result.to_csv("all6time.csv")
result.plot()
plt.legend(labels=["Python","PyPy3"])
plt.ylabel("Time Consuming(s)")
plt.xlabel("Number of Random Seed")
plt.show()